<div class="modal-header">
    <h4 class="modal-title">{{title}}</h4>
</div>

<div class="modal-body">
    <form class="form-horizontal" name="userForm" novalidate ng-submit="addUser()">

        <div class="form-group">
            <label class="col-sm-3 ">标题</label>

            <div class="col-sm-8">
                <input  type="text" class="form-control" ng-model="eventDetail.title">
                <div class="col-sm-3"></div>
            </div>
            <div class="col-sm-3"></div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 ">内容</label>

            <div class="col-sm-8">
                <textarea  type="text" class="form-control" ng-model="eventDetail.content"></textarea>
                <div class="col-sm-3"></div>
            </div>
            <div class="col-sm-3"></div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 ">开始日期</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" ng-model-options="options"
                       is-open="startDateOpened"
                       datepicker-popup="yyyy-MM-dd" show-button-bar="true"
                       current-text="今天" clear-text="清空" close-text="关闭"
                       placeholder="开始日期" ng-click="startDateOpened=true"
                       ng-model="startTime">
            </div>
            <div class="col-sm-3"></div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 ">结束日期</label>

            <div class="col-sm-8">
                <input type="text" class="form-control" ng-model-options="options"
                       is-open="endDateOpened"
                       datepicker-popup="yyyy-MM-dd" show-button-bar="true"
                       current-text="今天" clear-text="清空" close-text="关闭"
                       placeholder="结束日期" ng-click="endDateOpened=true"
                       ng-model="endTime">
                <div class="col-sm-3"></div>
            </div>
            <div class="col-sm-3"></div>
        </div>


    </form>
</div>

<div class="modal-footer">
    <div class="row">
        <div class="col-xs-4 col-xs-offset-1">
            <button class="btn btn-default btn-action" ng-click="cancel()">取 消</button>
        </div>
        <div class="col-xs-2"></div>
        <div class="col-xs-4">
            <button class="btn btn-primary btn-action" ng-disabled="loading||!userForm.$valid" ng-click="save()">
                确 定
            </button>
        </div>
    </div>
</div>



